package com.yidu.utils;

/**
 * <p>@Description: 工具</p>
 * <p>@author yidu-yuxigan</p>
 * <p>@Date:2021/1/13</p>
 * <p>@Time:10:25</p>
 */
public class BaseMessage {
    private Integer mes;
    private String pages;
    private Object date;

    public static BaseMessage succes(){
        BaseMessage bm=new BaseMessage();
        bm.setMes(1);
        bm.setPages("操作成功");
        return bm;
    }
    public static BaseMessage succes(Object date){
        BaseMessage bm=new BaseMessage();
        bm.setMes(1);
        bm.setDate(date);
        bm.setPages("操作成功");
        return bm;
    }
    public static BaseMessage fos(){
        BaseMessage bm=new BaseMessage();
        bm.setMes(0);
        bm.setPages("操作失败");
        return bm;
    }

    public Object getDate() {
        return date;
    }

    public void setDate(Object date) {
        this.date = date;
    }

    public Integer getMes() {
        return mes;
    }

    public void setMes(Integer mes) {
        this.mes = mes;
    }

    public String getPages() {
        return pages;
    }

    public void setPages(String pages) {
        this.pages = pages;
    }
}
